package eu.ec.ellipcis.integration.ws.receiver;

import org.springframework.context.support.ClassPathXmlApplicationContext;



public class AccountMain {

    public static void main(String[] args) {
        String contextName = "classpath:account-receiver-channels.xml";

        ClassPathXmlApplicationContext applicationContext =
                new ClassPathXmlApplicationContext(contextName);
        applicationContext.start();

        AccountMessageReceiver receiver = applicationContext.getBean("accountMessageReceiver", AccountMessageReceiver.class);

        Thread consumerThread = new Thread(receiver);
        consumerThread.start();
    }

}
